﻿using Avalonia.Controls;

namespace Avalonia.BiliBili.Views.ChildViews.Search
{
    public abstract class ChildView : ControlView<SearchView>
    {
        public override SearchView Base { get; set; }
        protected string GetTag(ComboBox comboBox)
        {
            try
            {
                if (comboBox?.SelectedItem is ComboBoxItem item)
                    return item.Tag?.ToString();
            }
            catch { }
            return string.Empty;
        }
    }
}